package com.cn.wanxi.service.impl;

import com.cn.wanxi.dao.NewsDao;
import com.cn.wanxi.dao.impl.NewsImpl;
import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.ResultModel;
import com.cn.wanxi.service.NewsService;

import java.util.List;

public class NewsServiceImpl implements NewsService {
    @Override
    public List<NewsModel> getNewsModelList(NewsModel model) {
        NewsDao newsDao=new NewsImpl();
        return newsDao.getNewsModelList(model);
    }

//    @Override
//    public List<NewsModel> getNewsModelListForNewsPage() {
//        NewsDao newsDao=new NewsImpl();
//        return newsDao.getNewsModelListForNewsPage();
//    }

    @Override
    public ResultModel findAll(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel updateEnable(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel updateField(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel delete(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel add(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel findById(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel update(NewsModel newsModel) {
        return null;
    }

    @Override
    public ResultModel getCount(NewsModel model) {
        return null;
    }
}
